package com.wntime.simulator.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

@Getter
@Setter
@TableName(value = "simulation_field")
public class SimulationField implements Serializable {
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @TableField(value = "\"simulator_id\"")
    private Long simulatorId;

    @TableField(value = "\"ref\"")
    private Integer ref;

    @TableField(value = "\"name\"")
    private String name;

    @TableField(value = "\"before\"")
    private Integer before;

    @TableField(value = "\"after\"")
    private Integer after;

    @TableField(value = "\"change\"")
    private String change;

    @TableField(value = "\"extend_info\"")
    private String extendInfo;

    private static final long serialVersionUID = 1L;

    public com.wntime.simulator.device.SimulationField toSimulatorField() {
        com.wntime.simulator.device.SimulationField simulatorField = new com.wntime.simulator.device.SimulationField();
        simulatorField.setRef(ref);
        simulatorField.setName(name);
        simulatorField.setBefore(before);
        simulatorField.setAfter(after);
        simulatorField.setChange(change);
        simulatorField.setExtendInfo(extendInfo);
        return simulatorField;
    }

}